package cn.turboinfo.dongying.api.domain.common.service.wechat;

import cn.turboinfo.dongying.api.entity.common.fo.wechat.WechatAuthResult;
import cn.turboinfo.dongying.api.entity.common.fo.wechat.WechatGetPhoneResult;
import cn.turboinfo.dongying.api.entity.common.fo.wechat.WeiXinUserinfo;

import java.io.IOException;

public interface WechatService {
    WechatAuthResult auth(String code) throws IOException;


    WechatGetPhoneResult getPhone(String code) throws IOException;

    WeiXinUserinfo getUserInfo(String openid) throws IOException;

    WeiXinUserinfo setUserinfoByOpenId(String openId) throws IOException;
}
